<?php
function strget($str, $str_start, $str_end, $str_offset = '') {
	$str = $str_offset ? substr($str, strpos($str, $str_offset)) : $str;
	$pos_start = strpos($str, $str_start) + strlen($str_start);
	$pos_end = strpos($str, $str_end, $pos_start);
	return substr($str, $pos_start, $pos_end - $pos_start);
}
//preg_match_all($pattern, $subject, $matches, $flags, $offset);
function matchall($pattern, $subject, $flags = null) {
	$matches = array();
	$flags = $flags ? $flags : PREG_SET_ORDER;
	preg_match_all($pattern, $subject, $matches, $flags);
	return $matches;
}

function li() {
	foreach (func_get_args() as $arg) {
		echo "<li>$arg</li>\n";
	}
}
?>